import request from '@/utils/request'

// 查询轮播图数据
export const getBanners = () =>
    request<any, Banner[]>({
        url: '/api/tab/1'
    })

// 秒杀商品数据
export const getSeckilllist = () =>
    request<any, Product[]>({
        url: '/api/home/spike',

    })

// 查询推荐商品数据
export const getRecommendList = (id = 1, start = 10) =>
    request<any, Product[]>({
        url: '/api/tab/1/feeds',
        params: {
            id,
            start
        }
    })